Skip to content

Add pscale maintenance list/show/windows - #1341

Merged
no-itsbackpack merged 2 commits into
mainfrom
feat/maintenance-schedules
Aug 14, 2026
Merged

Add pscale maintenance list/show/windows#1341
no-itsbackpack merged 2 commits into
mainfrom
feat/maintenance-schedules

Conversation

@no-itsbackpack

Copy link
Copy Markdown
Contributor

Summary

  • Add MaintenanceSchedules API client (List, Get, ListWindows) for Vitess Enterprise maintenance schedules.
  • Add pscale maintenance list|show|windows with JSON-friendly output and --org required.
  • Document usage in AGENTS.md.

Test plan

  • go test ./internal/planetscale/ -run TestMaintenance
  • go test ./internal/cmd/maintenance/
  • golangci-lint clean on touched packages
  • Live: maintenance list against planetscale/vercel/game returns [] / human empty message
  • Live: show/windows with unknown schedule-id returns NOT_FOUND JSON envelope
  • CI green

Expose Vitess Enterprise maintenance schedules so agents can inspect
planned windows without using the API passthrough.

Co-authored-by: Cursor <cursoragent@cursor.com>
@no-itsbackpack
no-itsbackpack requested a review from a team as a code owner August 14, 2026 17:30

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c408f9a. Configure here.

Comment thread internal/cmd/maintenance/maintenance.go

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: medium. Left a non-blocking comment; Cursor Bugbot skipped its check and reported an unresolved finding, so this was not approved. Human review is needed; reviewers were not assigned.

Open in Web View Automation 

Sent by Cursor Approval Agent: cli-reviewer

Monthly schedules need week plus day; show a human week label for
month frequency and dash otherwise.

Co-authored-by: Cursor <cursoragent@cursor.com>
@no-itsbackpack
no-itsbackpack merged commit 71ef182 into main Aug 14, 2026
4 checks passed
@no-itsbackpack
no-itsbackpack deleted the feat/maintenance-schedules branch August 14, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants